<?
	/**
	  * Consulta para paEncabeza.php
	  */
	switch($db->driver)
	{
	case 'mssql':
		$conversion = "CONVERT (CHAR(5), depe_codi)"; 		
		$sqlConcat = $db->conn->Concat($db->conn->substr."($conversion,1,5) ", "'-'",$db->conn->substr."(depe_nomb,1,30) ");
		
	break;
	case 'oracle':
	case 'oci8':
		$conversion = "depe_codi";
		//$sqlConcat = $db->conn->Concat("$conversion","'-'","depe_nomb");
		$sqlConcat = "substr(".$conversion.",1,3)||' - '||substr(depe_nomb,1,30)";
		break;
	}
?>